import 'package:sp_util/sp_util.dart';
import 'package:yp/config/config.dart';
import 'package:yp/entity/demo_entity.dart';
import 'package:yp/http/dio_api.dart';

import '../base/response_list_entity.dart';

/// The service responsible for networking requestsykcloud.scrm.card.prepaidcard.for.user.get
class Api {
  /// 注册
  // static Stream register({Map<String, dynamic> params}) {
  //   return DioApi.getInstance().post(
  //     "/app/auth/register",
  //     data: params,
  //   );
  // }

  /// 登陆
  static Stream login(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      // "ykcloud.user.by.worknums.password.login",
      "gb.member.new.password.login",
      data: params,
    );
  }

  /// 申请慧达人
  static Stream applybecomekoc(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.new.distribution.apply.submit.for.app",
      data: params,
    );
  }

  /// wx登陆（post请求传递微信wxcode）
  static Stream wxLogin(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "member.new.login.by.weixin",
      // "gb.member.new.password.login",
      data: params,
    );
  }

  /// 获取登录界面样式
  static Stream getLoginScreenStyle(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "com.ykcloud.soa.omp.basicdata.api.service.BdCommunityService.get.app.online.config",
      // "gb.member.new.password.login",
      data: params,
    );
  }

  ///销售线索列表
  static Stream customerList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.clue.sales.list.for.app.query",
      data: params,
    );
  }

  ///KOC线索登记添加
  static Stream kocCerate(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.clue.koc.create.or.update",
      data: params,
    );
  }

  ///KOC线索登记列表
  static Stream kocList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.clue.koc.list.for.app.query",
      data: params,
    );
  }

  ///KOC线索登记详情
  static Stream kocDetail(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.clue.koc.query",
      data: params,
    );
  }

  ///会员查询接口
  static Stream searchMember(Map<String, dynamic> params) {
    // return DioApi.getInstance().get<HttpResponseListEntity,KocListEntity>(
    //   "gb.member.new.adr.list.get",
    //   data: params,
    // );
    return DioApi.getInstance().get(
      "gb.member.new.basic.info.get",
      data: params,
    );
  }

  ///短信验证码发送
  static Stream sendSms(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.member.new.sms.verify.code.get",
      data: params,
    );
  }

  ///会员注册接口
  static Stream registMember(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.member.new.mobile.and.verify.login",
      data: params,
    );
  }

  ///购物车商品列表数据获取
  static Stream cartGoodsData(Map<String, dynamic> params) {
    params['shop_type'] = 0;
    return DioApi.getInstance().get(
      "ykcloud.mall.cart.item.list.get",
      data: params,
    );
  }

  ///代客下单选择商品获取商品列表接口
  static Stream selectGoods(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.goods.style.by.user.search",
      data: params,
    );
  }

  ///自提点列表数据获取
  static Stream selfHelpAddress(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.basicdata.sub.unit.shop.by.xy.get",
      data: params,
    );
  }

  ///商品规格获取
  static Stream goodsSpecifications(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.goods.mall.multi.style.info.get",
      data: params,
    );
  }

  ///添加商品到购物车
  static Stream addShoppingCart(Map<String, dynamic> params) {
    params['shop_type'] = 0;
    return DioApi.getInstance().get(
      "gb.mall.cart.item.add",
      data: params,
    );
  }

  ///获取购物车商品总数量
  static Stream cartItemNum(Map<String, dynamic> params) {
    params['shop_type'] = 0;
    return DioApi.getInstance().get(
      "gb.mall.cart.item.qty.get",
      data: params,
    );
  }

  ///编辑购物车
  static Stream cartItemEdit(Map<String, dynamic> params) {
    params['shop_type'] = 0;
    return DioApi.getInstance().get(
      "gb.mall.cart.item.edit",
      data: params,
    );
  }

  ///收货地址获取
  static Stream addressList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.member.new.adr.list.get",
      data: params,
    );
  }

  ///删除添加商品
  static Stream cartDelete(Map<String, dynamic> params) {
    params['shop_type'] = 0;
    return DioApi.getInstance().get(
      "gb.mall.cart.item.delete",
      data: params,
    );
  }

  ///购物车商品全选
  static Stream cartChoose(Map<String, dynamic> params) {
    params['shop_type'] = 0;
    return DioApi.getInstance().get(
      "gb.mall.all.cart.item.choose",
      data: params,
    );
  }

  ///新增会员收货地址
  static Stream addAddress(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.member.delivery.address.add",
      data: params,
    );
  }

  ///订单提交
  static Stream orderSubmit(Map<String, dynamic> params) {
    params['shop_type'] = 0;
    return DioApi.getInstance().post(
      "gb.mall.order.submit",
      data: params,
    );
  }

  ///查询分销素材明细
  static Stream materialDetail(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.clue.koc.material.detail.query",
      data: params,
    );
  }

  ///编辑地址获取当前地址信息
  static Stream editAddressMsg(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.member.new.adr.info.get",
      data: params,
    );
  }

  ///编辑地址重新提交当前地址信息
  static Stream editAddressUpdate(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.member.delivery.address.modify",
      data: params,
    );
  }

  ///结算页面商品查询
  static Stream orderSettle(Map<String, dynamic> params) {
    params['shop_type'] = 0;
    return DioApi.getInstance().get(
      "gb.mall.order.settle",
      data: params,
    );
  }

  ///结算页选择优惠券
  static Stream orderCouponSelect(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.mall.coupon.select",
      data: params,
    );
  }

  // ///结算页可选优惠券列表
  // static Stream orderCouponSelectList(Map<String, dynamic> params) {
  //   return DioApi.getInstance().get(
  //     "gb.mall.coupon.select",
  //     data: params,
  //   );
  // }

  //网格员发券优惠券列表数据获取
  static Stream couponList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.activity.koc.coupon.spread.rule.for.app.query",
      data: params,
    );
  }

  ///素材列表数据
  static Stream materialListData(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.clue.koc.material.for.app.query",
      data: params,
    );
  }

  ///素材转发分享数据
  static Stream shareMaterial(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.clue.koc.material.forward",
      data: params,
    );
  }

  ///Koc素材列表数据
  static Stream kocMaterialListData(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.clue.koc.custome.material.dynamic.query",
      data: params,
    );
  }

  ///Koc素材详情
  static Stream kocMaterialDetail(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.clue.koc.material.detail.query",
      data: params,
    );
  }

  ///素材分享
  static Stream shareMaterial2(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.clue.koc.custome.material.dynamic.forward",
      data: params,
    );
  }

  ///查询职员职位
  static Stream workCexport(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.cexport.data.export",
      data: params,
    );
  }

  ///查询用户信息
  static Stream userDetail(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.distribution.info.by.usr.num.id.get",
      data: params,
    );
  }

  ///koc等级中心信息查询
  static Stream kocLevel(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.min.distribution.salesperson.grade.info.get",
      data: params,
    );
  }

  ///网格员信息获取
  static Stream workBenchData(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.order.distribution.grid.work.bench.query",
      data: params,
    );
  }

  //工作台数据获取
  static Stream kocBenchData(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.distribution.salesperson.performance.get",
      data: params,
    );
  }

  ///支付订单
  static Stream orderPayment(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.ccash.pay.submitPrePayment",
      data: params,
    );
  }

  ///自定义素材发布
  static Stream kocMaterialCreate(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.clue.koc.custome.material.dynamic.publish",
      data: params,
    );
  }

  /// 素材地址选择
  static Stream adrMaterialSelect(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "yiako.basicdata.around.address.list.get",
      data: params,
    );
  }

  ///素材商品店铺选择
  static Stream MaterialGoodsSelect1(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.baseinfo.config.value.get",
      data: params,
    );
  }

  ///素材商品店铺商品选择
  static Stream MaterialGoodsSelect2(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "com.gb.soa.omp.masterdata.api.service.EcPromotionEcActivityService.findItemPage",
      data: params,
    );
  }

  ///图片上传
  static Stream upImage(params) {
    ///member/info
    return DioApi1.getInstance().post("/uploadImage", data: params);
  }

  /// demo
  static Stream fetchList({int pageNum = 1, Map<String, dynamic> params}) {
    return DioApi.getInstance().get<HttpResponseListEntity, DemoEntity>(
      "api/list",
      data: params,
    );
  }

  /// end

  ///  我的收藏
  static Stream favoriteList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.product.favorite.products.query",
      data: params,
    );
  }

  ///  顾客订单列表
  static Stream orderList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.order.new.invite.distribution.orders.query",
      data: params,
    );
  }

  ///  顾客订单详情
  static Stream orderDetail(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.order.new.invite.distribution.order.detail.query",
      data: params,
    );
  }

  /// 修改未发货订单收货地址和发货时间
  static Stream updateDetail(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.order.new.consumer.adr.update",
      data: params,
    );
  }

  /// 取消订单
  static Stream closeOrder(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "order.new.unpay.app.order.cancel",
      data: params,
    );
  }

  /// 商机产品种类
  static Stream classification(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.cexport.data.export",
      data: params,
    );
  }

  /// 查询
  static Stream commonSQL(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.cexport.data.export",
      data: params,
    );
  }

  /// 销售线索登记
  static Stream customerCerate(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.clue.sales.register",
      data: params,
    );
  }

  /// 销售线索详情
  static Stream customerDetail(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.clue.sales.query",
      data: params,
    );
  }

  /// 销售线索成交记录
  static Stream dealLog(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.clue.sales.trade.record.query",
      data: params,
    );
  }

  /// 销售线索跟进
  static Stream customerFollow(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.clue.sales.trace",
      data: params,
    );
  }

  /// 收益明细
  static Stream commission(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.order.distribution.order.profit.details.query",
      data: params,
    );
  }

  /// 客户列表
  static Stream clientList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.distribution.customer.list.query",
      data: params,
    );
  }

  /// 客户详情
  static Stream clientDetail(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.distribution.customer.detail.query",
      data: params,
    );
  }

  /// 邀请列表
  static Stream inviteList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.distribution.invite.list.query",
      data: params,
    );
  }

  static Stream inviteList1(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.user.relationa.concatenation",
      data: params,
    );
  }

  /// 查看我的邀请达人记录（新页面）
  static Stream inviteKOCList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.distribution.query.koc.list",
      data: params,
    );
  }

  /// 邀请推广二维码海报
  static Stream kocImg(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.basicdata.distribution.basic.setting.get",
      data: params,
    );
  }

  /// 邀请推广二维码
  static Stream kocQrcode(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.qrcode.unified.code.create",
      data: params,
    );
  }

  /// koc 审核
  static Stream kocAudit(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.new.distribution.apply.batch.operate",
      data: params,
    );
  }

  /// 推广商品
  static Stream product(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.product.distribution.product.info.list.query",
      data: params,
    );
  }

  /// 收藏
  static Stream saveProduct(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.product.favorite.product.save",
      data: params,
    );
  }

  /// 取消收藏
  static Stream delProduct(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.product.favorite.product.delete",
      data: params,
    );
  }

  /// 燃气用户
  static Stream rqUser(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.user.gas.query",
      data: params,
    );
  }

  static Stream rqUserInfo(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.social.distribution.query.by.empe.num.id",
      data: params,
    );
  }

  /// 燃气用户详情
  static Stream rqUserDetail(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.user.gas.query.by.gas.code",
      data: params,
    );
  }

  ///  隐私协议
  static Stream agreen1(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.basicdata.service.agreement.get",
      data: params,
    );
  }

  ///  注册协议
  static Stream agreen2(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.basicdata.service.agreement.get",
      data: params,
    );
  }

  /// 物流信息修改
  static Stream logisticsInformation(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.order.new.logistics.info.list.by.tml.num.id.get",
      data: params,
    );
  }

  ///支付结果查询接口
  static Stream paymentResult(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.ccash.pay.client.payment.query",
      data: params,
    );
  }

  ///素材删除
  static Stream deletMaterial(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.scrm.clue.koc.custome.material.dynamic.delete",
      data: params,
    );
  }

  ///工作台订单数量
  static Stream orderNum(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "order.new.usr.order.qty.get",
      data: params,
    );
  }

  ///燃气用户信息
  static Stream gasUserMsg(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.user.gas.query.by.gas.code",
      data: params,
    );
  }

  ///会员打标签
  static Stream userTagAdd(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.user.tag.batch.add",
      data: params,
    );
  }

  ///燃气用户
  static Stream gasTagAdd(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.user.gas.tag",
      data: params,
    );
  }

  ///燃气用户
  static Stream priceQuery(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.promotion.app.promotion.single.item.price.query",
      data: params,
    );
  }

  /// 退款原因
  static Stream cType(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.mdms.c.type.get",
      data: params,
    );
  }

  /// 退款申请
  static Stream tkApply(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.refund.reverse.order.generate",
      data: params,
    );
  }

  /// 退款详情
  static Stream tkDetail(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "order.new.usr.order.detail.get",
      data: params,
    );
  }

  /// 撤销退款
  static Stream cxtk(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.refund.back.order.agree.or.reject",
      data: params,
    );
  }

  /// 退款进度
  static Stream tkjd(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "order.new.logisticsinfo.by.tml.and.package.id.get",
      data: params,
    );
  }

  /// 填写物流信息

  static Stream returnProduct(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.refund.returnapply.express.update",
      data: params,
    );
  }

  /// 快递公司
  static Stream kdgs(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.cexport.data.export",
      data: params,
    );
  }

  /// 查询客服接口
  static Stream getAccessID(String numID) {
    return DioApi.getInstance().get(
      "ykcloud.baseinfo.access.id.by.ec.shop.num.id.get",
      data: {"ec_shop_num_id": numID},
    );
  }

  /// 查询可使用优惠券
  static Stream availableCouponsList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'card.app.counpons.usr.vouchers.find',
      data: params,
    );
  }

  /// 查询失效卡券(历史优惠券(2))
  static Stream invalidCouponsList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.scrm.card.invalid.card.by.usr.num.id.get',
      data: params,
    );
  }

  // 领券中心
  static Stream centerCouponsList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'com.card.search.card.ticket.for.app',
      data: params,
    );
  }

  // 会员可用积分
  static Stream userIntegral(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'gb.member.new.integralat.point',
      data: params,
    );
  }

  // 钱包
  static Stream walletInformation(Map<String, dynamic> params) {
    // String shopId = SpUtil.getInt('storeShopNum').toString();
    String shopId =
        SpUtil.getObject(Config.GET_SHOP_INFO)['shop_id'].toString();
    params['ec_shop_num_id'] = shopId;
    return DioApi.getInstance().get(
      'ykcloud.scrm.card.prepaidcard.for.user.get',
      data: params,
    );
  }

  // 获取平台总店
  static Stream pingTaiZongDian(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.basicdata.binding.shop.by.hash.code.and.user.get',
      data: params,
    );
  }

  // 首页装修模板
  static Stream homeTemplate(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.home.mobile.tmpl.instance.get',
      data: params,
    );
  }

  // 自选商品
  static Stream optionalGoods(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'yiako.goods.style.for.optional.search.home',
      data: params,
    );
  }

  static Stream goodsList(Map<String, dynamic> params) {
    return DioApi.getInstance().get('goods.virtual.style.get', data: params);
  }

  // gyq add begin
  // 查询订单数量
  static Stream queryOrderCount(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'gb.order.qty.get',
      data: params,
    );
  }

  //确认收货
  static Stream confirmReceived(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'order.new.order.status.for.confirm.receive.goods.update',
      data: params,
    );
  }

  //再次购买接口
  static Stream buyAgain(Map<String, dynamic> params) {
    params['shop_type'] = 0;
    return DioApi.getInstance().get(
      'gb.mall.cart.item.again.buy',
      data: params,
    );
  }

  //订单详情物流接口
  static Stream deliveryQuery(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'order.new.logisticsinfo.by.tml.and.package.id.get',
      data: params,
    );
  }

  //订单详情物流接口：添加物流地图
  static Stream deliveryQueryForMap(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'order.new.onlinelogisticsinfo.by.tml.and.package.id.get',
      data: params,
    );
  }

  //跳转秒杀页接口
  static Stream toSecKillPage(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'gb.cexport.data.export',
      data: params,
    );
  }

  //查询秒杀页产品
  static Stream secKillProduct(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'com.gb.soa.omp.masterdata.api.service.EcPromotionEcActivityService.searchActivityAndItem',
      data: params,
    );
  }

  // 更新订单
  static Stream modifyOrder(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.order.new.consumer.adr.update',
      data: params,
    );
  }

  // gyq add end
  static Stream goodsCategories(Map<String, dynamic> params) {
    return DioApi.getInstance()
        .get('ykcloud.basicdata.category.template.get', data: params);
  }

  /// 获取收货地址列表
  static Stream getReceivingAddressList(Map<String, dynamic> params) {
    return DioApi.getInstance().get('gb.member.new.adr.list.get', data: params);
  }

  /// 周边搜索
  static Stream surroundingSearch(Map<String, dynamic> params) {
    return DioApi.getInstance()
        .get('yiako.basicdata.around.address.list.get', data: params);
  }

  /// 钱包福利卡列表
  static Stream getWelfareCardList(Map<String, dynamic> params) {
    // String shopId = SpUtil.getInt('storeShopNum').toString();
    String shopId =
        SpUtil.getObject(Config.GET_SHOP_INFO)['shop_id'].toString();
    params['ec_shop_num_id'] = shopId;
    return DioApi.getInstance()
        .get('ykcloud.scrm.card.prepaidcard.for.user.get', data: params);
  }

  /// 绑定福利卡
  static Stream bindWelfareCard(Map<String, dynamic> params) {
    return DioApi.getInstance()
        .get('ykcloud.scrm.card.prepaidcard.user.bind', data: params);
  }

  /// 查询福利卡消费记录
  static Stream getGiftCardConsumptionRecord(Map<String, dynamic> params) {
    return DioApi.getInstance()
        .get('ykcloud.scrm.card.prepaidcard.consume.detail.get', data: params);
  }

  // 领取全部优惠券
  static Stream getAllCoupon(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.card.one.key.coupon',
      data: params,
    );
  }

  // 领取优惠券
  static Stream getCoupon(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'gb.scrm.couponruleCard.memberReceiveCouponfor',
      data: params,
    );
  }

  // 个性化配置
  static Stream personalizedConfiguration(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.basicdata.personal.config.for.app.get',
      data: params,
    );
  }

  // 根据分类id获取分类名称
  static Stream getClassificationName(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.basicdata.cat.name.by.cat.id.get',
      data: params,
    );
  }

  // 优惠券转增
  static Stream givingCoupon(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.cmember.qbarcode.donate',
      data: params,
    );
  }

  static Stream membershipInterests(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'yiako.masterdata.general.configuration.info.search',
      data: params,
    );
  }

  /// 查询燃气用户信息列表接口
  static Stream queryNaturalGas(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'yiako.mn.query.gas.info.by.usr.num.id',
      data: params,
    );
  }

  // 绑定天然气
  static Stream bindingNaturalGas(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.member.user.gas.bind',
      data: params,
    );
  }

  /// 解绑天然气
  static Stream unBindNaturalGas(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'yiako.mn.member.gas.user.untie',
      data: params,
    );
  }

  static Stream goodsDetail(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.goods.mall.item.detail.get',
      data: params,
    );
  }

  static Stream recommendGoods(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'com.gb.soa.omp.cgoods.api.service.searchstyle',
      data: params,
    );
  }

  // 商品详情推荐商品
  static Stream recommendCommodities(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'com.gb.soa.omp.cgoods.service.findStyleByRelate',
      data: params,
    );
  }

  /// 获取会员积分流水
  static Stream getMemberPointsTurnover(Map<String, dynamic> params) {
    return DioApi.getInstance().get('gb.member.new.point.query', data: params);
  }

  /// 获取会员积分
  static Stream getMemberPoints(Map<String, dynamic> params) {
    return DioApi.getInstance()
        .get('gb.member.new.integralat.point', data: params);
  }

  /// 如何获取积分
  static Stream getHowToGetPointsMethod(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
        'yiako.masterdata.general.configuration.info.search',
        data: params);
  }

  /// 获取实时热搜列表
  static Stream getRealTimeHotSearchList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
        'com.gb.soa.omp.cgoods.api.service.gethotwordbytype',
        data: params);
  }

  ///短信验证码发送(重置密码)
  static Stream resetPassword(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.member.new.login.password.setting",
      data: params,
    );
  }

  // 保存用户信息
  static Stream modifyInformation(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.member.new.basic.info.modify",
      data: params,
    );
  }

  /// 获取热搜列表
  static Stream getHotSearchList(Map<String, dynamic> params) {
    return DioApi.getInstance()
        .get('com.gb.soa.omp.cgoods.api.service.searchstyle', data: params);
  }

  /// 获取热搜列表
  static Stream getSearchList(Map<String, dynamic> params) {
    return DioApi.getInstance()
        .get('ykcloud.good.style.no.shop.search', data: params);
  }

  //工作台数据获取
  static Stream kocMaterialzdy(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "com.gb.soa.omp.masterdata.api.service.EcPromotionEcActivityService.findItemPage",
      data: params,
    );
  }

  //koc职位数据获取
  static Stream KocMaterial(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.distribution.info.by.usr.num.id.get",
      data: params,
    );
  }

  // 获取 可选择地址信息
  static Stream cityInformation(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'yiako.basicdata.prv.and.city.and.area.get',
      data: params,
    );
  }

  /// 查询已开通城市
  static Stream getCity(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'yiako.basicdata.all.city.get',
      data: params,
    );
  }

  ///购物车角标
  static Stream shopTag(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.basicdata.item.tag.list.get",
      data: params,
    );
  }

  // 查看订单评价权限
  static Stream viewEvaluationPermission(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.cmember.black.list.query',
      data: params,
    );
  }

  // 提交评论
  static Stream submitComments(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'order.new.trade.ratings.comments.store',
      data: params,
    );
  }

  // 追加评价
  static Stream additionalEvaluation(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'order.new.append.traderate.add',
      data: params,
    );
  }

  static Stream goodsDetailImageAndContent(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'com.gb.soa.omp.cgoods.api.service.styledescbystylenumid.get',
      data: params,
    );
  }

  static Stream goodsComments(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'order.new.goods.traderate.find',
      data: params,
    );
  }

  // 查询评价信息
  static Stream queryEvaluateInformation(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.order.new.tml.traderate.info.get',
      data: params,
    );
  }

  //立即购买
  static Stream orderNowBuy(Map<String, dynamic> params) {
    params['shop_type'] = 0;
    return DioApi.getInstance().get(
      'ykcloud.mall.order.now.buy',
      data: params,
    );
  }

  ///实名认证
  static Stream verify(Map<String, dynamic> params) {
    return DioApi.getInstance().post(
      "com.gb.soa.omp.cmember.api.service.open.gather",
      data: params,
    );
  }

  /// 绑定银行卡
  static Stream bingCard(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "com.gb.soa.omp.cmember.api.service.card.bind",
      data: params,
    );
  }

  /// 确认绑卡
  static Stream confirmBingCard(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "com.gb.soa.omp.cmember.api.service.card.bind.confirm",
      data: params,
    );
  }

  /// 账户开户
  static Stream account(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "com.gb.soa.omp.cmember.api.service.open.account",
      data: params,
    );
  }

  /// 账户开户查询结果
  static Stream accountSearch(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "com.gb.soa.omp.cmember.api.service.open.account.query",
      data: params,
    );
  }

  /// 收入明细列表
  static Stream commissionLog(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.distribution.account.detail.list.query",
      data: params,
    );
  }

  /// 提现记录
  static Stream withdrawLog(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.distribution.cash.out.detail.list.query",
      data: params,
    );
  }

  /// 提现
  static Stream withdraw(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.member.distribution.commission.cash.out",
      data: params,
    );
  }

  /// 提现须知
  static Stream withdrawSearch(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "yiako.masterdata.general.configuration.info.search",
      data: params,
    );
  }

  /// 查询以绑定银行卡
  static Stream cardList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "ykcloud.social.distribution.binded.bank.cards.query",
      data: params,
    );
  }

  static Stream addGoodsToFavorite(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'order.new.favorite.item.add',
      data: params,
    );
  }

  /// 福利卡扣款
  static Stream paysubmitPayment(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "gb.ccash.pay.submitPayment",
      data: params,
    );
  }

  // 频道页模板
  static Stream channelPageTemplate(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'com.gb.soa.omp.decorate.service.impl.EcSysShopServiceImpl.getTmplInstanceDetails',
      data: params,
    );
  }

  // 支付处理结束处理
  static Stream paymentFinish(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'gb.ccash.pay.client.payment.finish',
      data: params,
    );
  }

  // 删除地址
  static Stream deleteAss(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'gb.member.new.adr.delete',
      data: params,
    );
  }

  // 预估用户未来七天签到奖励
  static Stream estimateSignInReward(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.member.new.user.signinrecord.predict',
      data: params,
    );
  }

  // 签到
  static Stream signIn(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.member.new.sign.in',
      data: params,
    );
  }

  // 签到规则查询
  static Stream signInRules(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.member.new.sign.in.rule.get',
      data: params,
    );
  }

  // 查询会员常用发票抬头
  static Stream commonInvoiceHeader(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.member.new.invoice.titles.query',
      data: params,
    );
  }

  // 添加发票抬头
  static Stream addInvoiceHeader(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.member.new.invoice.title.edit',
      data: params,
    );
  }

  // 连续签到天数
  static Stream continuitySignInDays(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.member.new.user.signin.record.get',
      data: params,
    );
  }

  // 创建发票
  static Stream createInvoice(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.order.new.invoice.info.create',
      data: params,
    );
  }

  // 根据订单编号查询发票详情
  static Stream queryInvoiceDetails(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.order.new.invoice.info.by.tml.num.id.get',
      data: params,
    );
  }

  // 查询会员发票抬头
  static Stream queryInvoiceHeader(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.member.new.invoice.titles.query',
      data: params,
    );
  }

  static Stream deleteInvoiceHeader(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.member.new.invoice.title.delete',
      data: params,
    );
  }

  // 获取今日必拼数据
  static Stream queryspellgroup(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.basicdata.spellgroup.all.product.get',
      data: params,
    );
  }

  // 获取热拼榜数据
  static Stream queryhotproduct(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'order.new.spellgroup.hot.product.get',
      data: params,
    );
  }

  // 获取邀请好友有利
  static Stream activityfind(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.basicdata.activity.find',
      data: params,
    );
  }

  // 查询优惠价列表
  static Stream couponQuery(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.basicdata.integral.coupon.for.app.query',
      data: params,
    );
  }

  // 消费有礼
  static Stream taskQuery(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.activity.member.surprise.task.query',
      data: params,
    );
  }

  //消费有利头部banner

  static Stream activityBanner(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.activity.banner.options.get',
      data: params,
    );
  }

  static Stream surpriseDayQuery(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.activity.member.task.query',
      data: params,
    );
  }

  //会员任务
  static Stream surpriseQuery(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.activity.member.surprise.task.query',
      data: params,
    );
  }

  //获取拼团商品信息
  static Stream groupDetail(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.basicdata.group.buy.item.detail.by.buy.id.query',
      data: params,
    );
  }

  //触发列表
  static Stream fissionTrigger(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.cmember.fission.trigger',
      data: params,
    );
  }

  //触发列表
  static Stream pintuandingdan(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'order.new.panic.group.order.list.get',
      data: params,
    );
  }

  //拼团去结算
  static Stream grouporder(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.cart.group.buy.order.settle',
      data: params,
    );
  }

  //邀请人绑定
  static Stream inviterreward(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.member.inviter.reward',
      data: params,
    );
  }

  //拼团支付提交订单
  static Stream grouphdrcreate(Map<String, dynamic> params) {
    return DioApi.getInstance().post(
      'order.new.panic.group.hdr.create',
      data: params,
    );
  }

  //拼团支付提交订单
  static Stream awardquery(Map<String, dynamic> params) {
    return DioApi.getInstance().post(
      'ykcloud.activity.member.award.query',
      data: params,
    );
  }

  //拼手气
  static Stream envelopeget(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.member.new.luck.envelope.get',
      data: params,
    );
  }

  //拼手气
  static Stream assembledetail(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'com.yiako.order.new.assemble.detail.get',
      data: params,
    );
  }

  //加入拼团列表
  static Stream codelistget(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'order.new.goup.code.list.get',
      data: params,
    );
  }

  //申请koc
  static Stream applysubmit(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.member.new.distribution.apply.submit',
      data: params,
    );
  }

  //查询申请koc
  static Stream applyquery(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.member.new.distribution.apply.query',
      data: params,
    );
  }

  ///  我的订单添加搜索框
  static Stream searchOrderList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      "order.new.usr.order.list.query",
      data: params,
    );
  }

  //内容中心列表查询
  static Stream contentcategoryquery(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.scrm.content.category.query',
      data: params,
    );
  }

  //内容中心列表查询
  static Stream contentquery(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.scrm.content.query',
      data: params,
    );
  }

  //内容中心列表查询
  static Stream contentlikes(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.scrm.content.likes',
      data: params,
    );
  }

  //订阅
  static Stream awardinfoget(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.activity.complete.award.info.by.date.get',
      data: params,
    );
  }

  //订阅
  static Stream contentcollec(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.scrm.content.collect',
      data: params,
    );
  }

  //订阅
  static Stream detailquery(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.scrm.content.detail.query',
      data: params,
    );
  }

  static Stream cardmeidacouponruleget(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'gb.scrm.mediacouponruleservice.cardmeidacouponruleget',
      data: params,
    );
  }

  static Stream infosync(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.scrm.card.coupon.usr.info.sync',
      data: params,
    );
  }

  static Stream appexchange(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.basicdata.integral.coupon.for.app.exchange',
      data: params,
    );
  }

  static Stream cityShopList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.basicdata.shop.list.by.city.get',
      data: params,
    );
  }

  // 促销信息
  static Stream promotionalInformation(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.basicdata.more.item.tag.list.get',
      data: params,
    );
  }

  //查询意见反馈
  static Stream queryFeedbackLabels(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.order.new.opinion.feedback.content.query',
      data: params,
    );
  }

  //提交意见反馈
  static Stream submitFeedback(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.order.new.opinion.feedback.submit',
      data: params,
    );
  }

  //帮助中心查询
  static Stream queryHelp(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.basicdata.help.center.content.query',
      data: params,
    );
  }

  // 我的收藏--删除
  static Stream collectListsDelete(Map<String, dynamic> params) {
    return DioApi.getInstance().post(
      'order.new.favorite.item.remove',
      data: params,
    );
  }

  // 开具发票
  static Stream noBill(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.activity.self.pick.up.activity.award.get',
      data: params,
    );
  }

  // 获取收藏列表
  static Stream getCollectLists(Map<String, dynamic> params) {
    return DioApi.getInstance().post(
      'order.new.favorite.item.list.query',
      data: params,
    );
  }

  // 商品规格
  static Stream specificationParameters(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'com.gb.soa.omp.cgoods.api.service.styledetailbystylenumid.get',
      data: params,
    );
  }

  //用户卡片信息查询
  static Stream queryUserCard(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.card.prepaid.store.usr.query',
      data: params,
    );
  }

  // 查询首页爆屏前置接口
  static Stream getAdvertiseImg(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'com.gb.soa.omp.cdecorate.api.service.ecsysshop.getTmplInstanceList',
      data: params,
    );
  }

  //获取爆屏优惠券
  static Stream fetchNewCouponList(dynamic params) {
    return DioApi.getInstance().get(
      'ykcloud.card.search.coupon.claim',
      data: params,
    );
  }

  //更换手机号 旧手机号验证
  static Stream modfiyOldPhone(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.member.new.sms.verify.code.check',
      data: params,
    );
  }

  //确定更换
  static Stream sureModfiyPhone(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.cmember.user.mobile.change.for.weapp',
      data: params,
    );
  }

  //设置支付密码
  static Stream setPayPwd(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.card.prepaid.modify.password.code',
      data: params,
    );
  }

  //免密支付
  static Stream noPwdPay(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.card.prepaid.modify.free.open.sogn',
      data: params,
    );
  }

  // 去换购
  static Stream goExchange(Map<String, dynamic> params) {
    params['shop_type'] = 0;
    return DioApi.getInstance().get(
      'ykcloud.soa.mall.ccart.api.service.CartMallService.getCartPriceAddBuyProductList',
      data: params,
    );
  }

  // 去凑单
  static Stream goCollect(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.goods.item.getItemsOfPromotion',
      data: params,
    );
  }

  // 换购加入购物车
  static Stream goExchangeAddCart(Map<String, dynamic> params) {
    params['shop_type'] = 0;
    return DioApi.getInstance().get(
      'ykcloud.soa.mall.ccart.api.service.cartMallService.addCartItemPriceAdd',
      data: params,
    );
  }

  // 获取是否收藏
  static Stream whetherCollection(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'order.new.favorate.item.check',
      data: params,
    );
  }

  // 首页优惠券接口
  static Stream homeCoupon(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.card.search.coupon.claim',
      data: params,
    );
  }

  //大转盘
  static Stream queryTurntableData(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcluod.cmember.turntable.page.access',
      data: params,
    );
  }

//大转盘权限
  static Stream turntableCheck(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.cmember.turntable.check.draw.permission',
      data: params,
    );
  }

  //大转盘抽奖
  static Stream turntableDraw(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.cmember.turntable.member.draw',
      data: params,
    );
  }

  //大转盘获取剩余抽奖次数
  static Stream turntableRemainCount(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.cmember.turntable.exchange.remain.count',
      data: params,
    );
  }

  //大转盘获取内容
  static Stream getTurntableAwardList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.cmember.turntable.usr.draw.query',
      data: params,
    );
  }

  // 获取门店数据
  static Stream getShopInfo(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'com.gb.soa.omp.masterdata.ecshopservice.getecshopinfo',
      data: params,
    );
  }

  //大转盘获取奖品
  static Stream getTurntableAward(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.cmember.turntable.usr.obtain.reward',
      data: params,
    );
  }

  //大转盘积分兑换抽奖次数
  static Stream TurntableIntegralToAward(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.cmember.turntable.exchange.draw.integral',
      data: params,
    );
  }

  /// 预售活动
  static Stream getPreSale(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.basicdata.activity.items.get',
      data: params,
    );
  }

  //积分兑换商品查询
  static Stream reservednoappget(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.basicdata.integral.exchange.goods.by.reservedno.for.app.get',
      data: params,
    );
  }

  // 搜店铺
  static Stream searchShopList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.basicdata.shop.info.list.search',
      data: params,
    );
  }

  //用户绑定
  static Stream userBind(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'member.new.union.login.bind',
      data: params,
    );
  }

  //会员中心 商品绑定
  static Stream memRecommendGoods(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.goods.style.by.city.search',
      data: params,
    );
  }

  //账号注销 确定
  static Stream accountInvalid(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'yiako.masterdata.general.configuration.info.submit.member.cancel',
      data: params,
    );
  }

  /// 超级团活动页
  static Stream surplusMarketInfo(Map<String, dynamic> params) {
    return DioApi.getInstance()
        .get('ykcloud.basicdata.activity.getActivityInfo', data: params);
  }

  /// 超级团详情
  static Stream surplusMarketDetails(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
        'ykcloud.basicdata.activity.getEcActivityProductDetail',
        data: params);
  }

  /// 超级团填写订单
  static Stream surplusMarketSettle(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
        'ykcloud.soa.mall.ccart.api.service.cartMallSubmitService.settleSuperGroupBuyOrder',
        data: params);
  }

  /// 超级团提交订单
  static Stream surplusMarketCreate(Map<String, dynamic> params) {
    return DioApi.getInstance().post(
        'ykcloud.order.new.multi.shop.order.createSuperGroupBuyOrder',
        data: params);
  }

  /// 定金预售
  static Stream fontMoneySale(Map<String, dynamic> params) {
    return DioApi.getInstance()
        .get('ykcloud.basicdata.activity.getPreSellActivityInfo', data: params);
  }

  /// 定金预售商品详情
  static Stream fontMoneySaleDetail(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
        'ykcloud.basicdata.activity.getEcActivityPreSellProductDetail',
        data: params);
  }

  /// 定金预售提交详情
  static Stream fontMoneySaleOrderDetail(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
        'ykcloud.soa.mall.ccart.api.service.cartMallSubmitService.settlePreSellOrder',
        data: params);
  }

  /// 定金预售定金提交
  static Stream fontMoneySaleOrderSubmit(Map<String, dynamic> params) {
    return DioApi.getInstance().post(
        'ykcloud.order.new.multi.shop.order.createPreSellOrder',
        data: params);
  }

  /// 定金预售尾款详情
  static Stream fontMoneyTailOrder(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
        'ykcloud.soa.mall.ccart.api.service.cartMallSubmitService.settlePreSellBalance',
        data: params);
  }

  /// 定金预售尾款支付
  static Stream fontMoneyTailOrderSubmit(Map<String, dynamic> params) {
    return DioApi.getInstance().post(
        'ykcloud.soa.mall.ccart.api.service.cartMallSubmitService.submitPreSellBalance',
        data: params);
  }

  /// 协议
  static Stream agreement() {
    return DioApi.getInstance().post(
        'ykcloud.basicdata.agreement.config.by.hash.code.get',
        data: {"hash_code": "nrp-zrhsh"});
  }

  ///   取消订单
  static Stream orderCancel(Map<String, dynamic> params) {
    return DioApi.getInstance().post('api.vip.orderCancel', data: params);
  }

  /// 拼团tab
  static Stream categoryget(Map<String, dynamic> params) {
    return DioApi.getInstance()
        .get('ykcloud.basicdata.spellgroup.category.get', data: params);
  }

  // 获取广告列表
  static Stream getAdvertising(Map<String, dynamic> params) {
    return DioApi.getInstance().post(
        'ykcloud.basicdata.service.advertising.advertisingByPageGet',
        data: params);
  }

  // 获取订阅收藏内容

  static Stream getCollect(Map<String, dynamic> params) {
    return DioApi.getInstance()
        .get('ykcloud.scrm.content.my.collect.query', data: params);
  }

  // 取消订阅
  static Stream cancleCollect(Map<String, dynamic> params) {
    return DioApi.getInstance()
        .get('ykcloud.scrm.content.collect', data: params);
  }

  // 订阅内容跳转详情
  static Stream goCollectDetail(Map<String, dynamic> params) {
    return DioApi.getInstance().get('ykcloud.scrm.content.views', data: params);
  }

  // 获取收藏的店铺列表
  static Stream goCollectShopDetail(Map<String, dynamic> params) {
    return DioApi.getInstance()
        .get('ykcloud.order.new.favorite.shop.list.query', data: params);
  }

  //拼手气红包
  static Stream couponclaim(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.card.search.coupon.claim',
      data: params,
    );
  }

  /// 收藏店铺
  static Stream favoriteShopAdd(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.order.new.favorite.shop.add',
      data: params,
    );
  }

  /// 取消收藏店铺
  static Stream favoriteShopRemove(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.order.new.favorite.shop.remove',
      data: params,
    );
  }

  /// 拼团福利卡
  static Stream pintuancard(Map<String, dynamic> params) {
    String shopId = SpUtil.getInt('storeShopNum').toString();

    params['ec_shop_num_id'] = shopId;
    return DioApi.getInstance()
        .get('ykcloud.scrm.card.prepaidcard.for.user.get', data: params);
  }

  // 领取优惠券2
  static Stream getCoupon2(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'ykcloud.member.invited.coupon.give',
      data: params,
    );
  }

  // 首页获取优惠券数据
  static Stream getHomeCouponData(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'zrhsh.scrm.activity.award.user.award.vouchers.remind',
      data: params,
    );
  }

  // 根据优惠券适配商品信息查询商品列表接口
  static Stream getCouponList(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'zrhsh.cgoods.coupon.related.goods.get',
      data: params,
    );
  }

  // 获取省
  static Stream getProvinceInfo(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'gb.baseinfo.province.list.get',
      data: params,
    );
  }

  // 获取市
  static Stream getCityInfo(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'gb.baseinfo.city.list.get',
      data: params,
    );
  }

  // 获取区
  static Stream getCityAreaInfo(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'gb.baseinfo.cityarea.list.get',
      data: params,
    );
  }

  // 根据县区编码获取乡镇编号
  static Stream getTownInfo(Map<String, dynamic> params) {
    return DioApi.getInstance().get(
      'gb.baseinfo.town.list.get',
      data: params,
    );
  }

  // 复制分享链接
  static Stream generateshortlink(Map<String, dynamic> params) {
    return DioApi.getInstance().post(
      'ykcloud.weixin.miniprogram.code.generate.shortlink',
      data: params,
    );
  }
}
